package com.hw.exceptions;

/**
 * @ClassName: MyBaseException
 * @Description: 自定义异常继承 RuntimeException类
 * @Author: vie0134
 * @Date: 2020-12-10 20:42
 * @Version: 1.0
 **/
public class MyBaseException extends RuntimeException{
    private int code;

    public int getCode() {
        return code;
    }

    public MyBaseException(String message, int code) {
        super(message);
        this.code = code;
    }
}
